// B2019 write by cn_ryh
#include <iostream>
using namespace std;
int main()
{
    int a;
    cin >> a;
    bool b = a;
    int c = b;
    cout << c << endl;
    return 0;
}